package com.igeek.base.ch04;

/**
 * @Description TODO
 * @Author chenmin
 * @Date 2024/7/12 15:31
 */
public class InterfaceDemo {
    void makeFly(CanFly fly){
        fly.fly();

    }

    public static void main(String[] args) {
        InterfaceDemo interfaceDemo = new InterfaceDemo();
        interfaceDemo.makeFly(new feiji());
        interfaceDemo.makeFly(new niao());

    }
}
